-- GENERATED SPELL FOR [Spindleweb Spider] --


function spell0_16350(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16350', 0, 1)
end

function spell1_16350(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(11918,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16350', 15000, 1)
end

function Sorts_16350(pUnit, Event)
local choix_sorts_16350 = math.random(0, 1)
if choix_sorts_16350 == 0 then
pUnit:RegisterEvent('spell0_16350', 1, 1)
end
if choix_sorts_16350 == 1 then
pUnit:RegisterEvent('spell1_16350', 1, 1)
end
end

function mob16350_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16350', math.random(1500, 3000), 1)
end

function mob16350_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16350_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16350_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16350, 1, 'mob16350_Action')
RegisterUnitEvent(16350, 2, 'mob16350_Leave')
RegisterUnitEvent(16350, 3, 'mob16350_Kill')
RegisterUnitEvent(16350, 4, 'mob16350_Die')
